package hspedu.learn.javabase.extendsImporve;

import org.apache.poi.xssf.streaming.SXSSFCell;

public class Override01 {
    public void cry() {
        System.out.println("动物叫唤~");
    }
    public double m1() {
        return 1;
    }
    public Six test(){
        return null;
    }

    public double m1(String s) {
        return 1;
    }

}

class Dog extends Override01 {
    @Override
    public void cry() {
        //返回类型、名称、参数一样，叫做方法重写（方法覆盖）
        super. cry();
        System.out.println("小狗汪汪叫");
    }

    @Override
    public double  m1() {
        return 1;
    }
    @Override
    public Seven test(){
        return null;
    }
}
class Six {

}
class Seven extends Six{

}

class Run {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.cry();
    }
}
